﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Model;

public partial class Administration_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // parent category dropdown binder
        using (MamiMeuEntities context = new MamiMeuEntities())
        {
            try
            {
                var values = from c in context.TreeViewCategories
                             select c;
                if (values.Count() > 0)
                {
                    DataTable dt = values.ToDataTable();
                }
            }
            catch (Exception ex)
            { Response.Write(ex.ToString()); }
        }
        ContentPlaceHolder RightContentHolder = (ContentPlaceHolder)Master.FindControl("RightContentHolder");
        RightContentHolder.Visible = false;
    }
}
